package org.grapes.wine.api.server.method.impl;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.grapes.wine.api.server.method.handler.MethodHandler;
import org.grapes.wine.api.server.util.SQLHelper;
import org.grapes.wine.api.method.EWineMethod;
import org.w3c.dom.Document;

public class GetUserMethod2 extends MethodHandler {

	private static List param = new ArrayList();
	static {
	}
	
	@Override
	public Document execute(HttpServletRequest request) throws Exception {
		SQLHelper sqlHelper = new SQLHelper();
		sqlHelper.setSQLStatement("insert into Landscape (landscape_name, serial, " +
				"introduction, price, slight_name, visit_period) values (?, ?, ?, ?, ?, ?)");
		sqlHelper.addToken(0, "王家寨水乡民俗观光园");
		sqlHelper.addToken(1, "9");
		sqlHelper.addToken(2, "NONE");
		sqlHelper.addToken(3, "4");
		sqlHelper.addToken(4, "NONE");
		sqlHelper.addToken(5, "30");
				
		return init(request, param, sqlHelper);
	}

	@Override
	public final String getMethodName() {
		return EWineMethod.GET_USER2.methodName();
	}

	@Override
	public final List getParam() {
		return param;
	}
}
